<#include "../common/_header.htm">
<div style="height:100%;width:100%;background-color: #F3F1EC;display:flex;">
	<div id="trail" style="height:100%;overflow: auto;width:240px;font-size:12px;padding:5px;">
	</div>
	<div id="hidebox" style="flex:1;">
	</div>
</div>
<!--判断是否联网-->
<script src="${ctx}/bower_components/vue/common/onLineUtil.js?_v=6.0.3"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/bower_components/map2.0/css/baidu_map_v2.css"/>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=T72A6h5INhfXpKA5ZBsrDcj3fbQpeaWs"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/InfoBox/1.2/src/InfoBox_min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/CurveLine/1.5/src/CurveLine.min.js"></script>
<script>
    $(function() {
        /** 回去传值 **/
        var dialog = top.dialog.get(window);
        var data = dialog.data; // 获取对话框传递过来的数据
        var myMap = new mrdMap();
		myMap.init("hidebox");
        $.ajax({
            url:"${ctx}/phoneAddress/worked_map",
            type:'post',
            data:data,
            dataType:'json',
            success:function(result){
            	myMap.loadData(result.allRows);

            	//封装左侧列表详情
            	var html='';
            	html+='<p>合计'+result.total+'条</p>';
            	$(result.allRows.data2).each(function(i,item){
	            	html+='<p>'+item.service_NUMBER+' '+item.starting_TIME+' '+item.address+'</p>';
            	});
            	$("#trail").html(html);
            }
        })
    });
</script>
<style>
    #hidebox {
        border-radius: 5px;
        background-color:#fff;
        z-Index:9999;
        padding: 10px;
        overflow:hidden;
    }
</style>
</body>
</html>
